const mongoose = require('mongoose')
const Scheam = mongoose.Schema;
const HoleScheam = new Scheam({
  title: {
    type: String,
  },
  floor_id: {
    type: Scheam.Types.ObjectId,
    ref: "Floors" //author_id和 用户表建立关系。   model
  },
  // 第几层
  floor: Number,
  //1底图 2:打洞 3建筑 
  category: Number,
  /*用户的id*/
  data: String,
  color: Number,
  heigth: Number

})
module.exports = Hole = mongoose.model("Hole", HoleScheam)